<?php
	require_once("database.php");
	$db=new Database;
	$date=date("Y".'-'."m".'-'."d");
	$sql="SELECT hits FROM hits where date='$date'";
	$hits_res = $db->query($sql);
	$hits_row = mysql_fetch_array($hits_res);
	if(mysql_num_rows($hits_res)==1)
	{
		echo $hits_row['hits'];
	}
	else
	{
		echo '0';
	}
?>